package com.dhp.utils;

import org.springframework.util.DigestUtils;

import java.util.UUID;

public class genAKSKUtil {
    private static final String salt = "bk201";

    public static String genAccessKey(){
        String uuid = UUID.randomUUID().toString();
        return DigestUtils.md5DigestAsHex((uuid + salt).getBytes());
    }

    public static String genSecretKey(){
        String uuid = UUID.randomUUID().toString();
        return DigestUtils.md5DigestAsHex((uuid + salt).getBytes());
    }
}
